#ifndef IGGS_PC_DEFINES_H
#define IGGS_PC_DEFINES_H

/*
 * Custom Global Defines: IGGS_PC_Defines.h
 * <|---------------------------------------|>
 * 1st_Restore_Point = Wednesday 14/March/2007 (11:03)
 *              #1--> symbolic document backup
*/

#include <sys/types.h>
#include <netinet/in.h>
#ifndef bool
#include <stdbool.h>
#endif
#include <limits.h>


#ifndef STDIN
#define STDIN 0
#endif

#ifndef STDOUT
#define STDOUT 1
#endif

#ifndef STDERR
#define STDERR 2
#endif 

#define MAX_CHILDREN_DEFAULT (2)

#define TCP_PORT 12345
#define DEFAULT_TCP TCP_PORT

#define CR '\r'

#define LF '\n'

#define CRLF "\r\n"

#define OK_MSG "+OK\r\n"

#define ERROR_MSG "-ERR\r\n"

#define FULL_MSG "-MAX\r\n"

#define SERVER_FULL 1

#ifndef LISTENQ
#define LISTENQ 15
#endif

#define MAX_BUFFER_LENGTH 255

#define MAX_BUFFER_LENGTH_1 63

#define MAX_WAIT 30

#define OK_VAR_LIST (0)

#define ERR_N_CHILDREN (1)

#define ERR_TCP_PORT (2)

#define FALSE (0)

#define TRUE (1)

#define MAX_PARAM (3)

#define INDEX_CHLDN (0)
#define INDEX_PORTN (1)

#define u64 uint64_t
#define u32 uint32_t
#define u16 uint16_t
#define u8 uint8_t

#define s32 int32_t
#define s16 int16_t
#define s8 int8_t

#define codifica_B u8

#define ONE_PARAM 1
#define TWO_PARAM 2

typedef struct Boot_arguments {
	
	u16 num_param; //number of detected parameters at program launch-time
	u16 port_number;
	u16 max_children;
	u16 error_codes [MAX_PARAM];
	
}Boot_args;


#endif

